# Maintainer: Andrea Dalle Vacche

_realname=Encode-compat
pkgname=perl-${_realname}
pkgver=0.07
pkgrel=1
pkgdesc="Encode::compat - Encode.pm emulation layer"
arch=('any')
license=('GPL' 'PerlArtistic')
url="https://metacpan.org/release/Encode-compat"
depends=('perl')
groups=('perl-modules')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/A/AU/AUTRIJUS/${_realname}-${pkgver}.tar.gz")
sha256sums=('4436c2b168b7e11627a24c54c7e8ce56e25dbf368219b9298d96281d4b463420')

prepare() {
  cd ${_realname}-${pkgver}
    }

build() {
  cd ${_realname}-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd ${_realname}-${pkgver}
  make test
}

package() {
  cd ${_realname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
